package com.open.pay.service.impl;

import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.open.pay.entity.PayEntity;
import com.open.pay.mapper.PayMapper;
import com.open.pay.resp.PayDTO;
import com.open.pay.service.PayService;

@Service
public class PayServiceImpl extends ServiceImpl<PayMapper, PayEntity> 
	implements PayService {

	@Override
	public PayDTO getPayById(Integer id) {
		PayEntity orderEntity = this.getById(id);
		PayDTO dto = new PayDTO();
		BeanUtils.copyProperties(orderEntity, dto);
		return dto;
	}

	@Override
	public boolean addOrder(PayDTO dto) {
		//TODO
		
		return false;
	}
	
	

}
